package org.example.hrpc.config;

public class RegistryConfig {
    /**
     * Protocol for register center
     */
    private String protocol;

    /**
     * Register center address
     */
    private String address;

    /**
     * Default port for register center
     */
    private Integer port;

    /**
     * Username to login register center
     */
    private String username;

    /**
     * Password to login register center
     */
    private String password;

    public RegistryConfig(String protocol, String address, Integer port) {
        this.protocol = protocol;
        this.address = address;
        this.port = port;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        this.port = port;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
